<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>cotenancyInfo</title>
        <base th:href="@{/}">
        <link rel="stylesheet" href="static/css/bootstrap.min.css"/>
        <link rel="stylesheet" href="static/css/style.css"/>
                <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
        
    </head>
    <body>
        <div class="container text-center">
            <br>
            <h2 class="text-success bg-success padding10">个人信息</h2>
            <hr>
            <br>
            <form action="'cotenancy/edit_cotenancy/'+${cotenancy.Uid}+${cotenancy.Hid}" class="form-inline" method="post">
            
			    <span>发布人：</span><input type="text"  th:value="${cotenancy.Uid}" name="Uid" class="form-control" readonly>
                <br><br>
                <span>合租编号：</span><input type="text"  th:value="${cotenancy.Hid}" name="Hid" class="form-control" readonly>
                <br><br>
                 <span>合租价格：</span><input type="text" th:value="${cotenancy.Cprice}" name="Cprice"  class="form-control" readonly>
                <br><br>
                <span>合租意向性别：</span><input type="text" th:value="${cotenancy.Hcgender}" name="Hcgender"  class="form-control" readonly>
                <br><br>
                <span>合租描述：</span><input type="text" th:value="${cotenancy.Hdes}" name="Hdes"  class="form-control" readonly>
                <br><br>
                <span>房屋地址：</span><input type="text" th:value="${cotenancy.Haddress}" name="Haddress"  class="form-control" readonly> 
                <br><br>
                <span>房屋交通：</span><input type="text" th:value="${cotenancy.Htra}" name="Htra"  class="form-control"  readonly> 
                <br><br>
                <span>房屋设施：</span><input type="text" th:value="${cotenancy.Hcon}" name="Hcon"  class="form-control"  readonly> 
                <br><br>
                <span>房屋类型：</span><input type="text" th:value="${cotenancy.Htype}" name="Htype"  class="form-control"  readonly> 
                <br><br>
                <span>房屋主题：</span><input type="text" th:value="${cotenancy.Hpic}" name="Hpic"  class="form-control" readonly > 
                <br><br>
              
            </form>
            <br>
             <table th:if="${comment}!=null" class="table table-hover table-striped">
                <tr>
                	<th>评论的人</th>
					<th>评论内容</th>
                </tr>
                    <tr th:each="c:${comment}" >
                    	<td th:text="${c.Uid2}"></td>
                        <td th:text="${c.Hmessage}"></td>
                    </tr>
            </table>
            <br>
            <h4>评论</h4>
            <form action="CotenancyMessage/comment">
            <input type="hidden"  name="messageUid" th:value="${cotenancy.Uid}"/>
            <input type="hidden" name="messageHid" th:value="${cotenancy.Hid}" />
            <textarea name="Hmessage" class="form-control" ></textarea>
            <input type="submit" value="评论" class="btn btn-sm btn-primary">
            </form>
             <a th:href="@{'index/'+${session.sessionuser.Uid}}">返回首页</a>&nbsp;
             
        </div>
    </body>
</html>

